package com.neu.service.impl;


import java.util.List;

import com.neu.dao.DeptDao;
import com.neu.po.Dept;
import com.neu.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DeptServiceImpl implements DeptService {
	@Autowired
	public DeptDao dao;
	public void setDao(DeptDao dao){
		this.dao = dao;
	}
	@Override
	public List<Dept> selectAll() {
		return dao.selectAll();
	}

	@Override
	public List<Dept> selectByName(String name) {
		return dao.selectByName(name);
	}


}
